﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model.Interfaces;

namespace Model
{
    public class CauchySystem : ICauchySystem
    {
        #region Properties

        public double A { get; set; }
        public double B { get; set; }
        public double Epsilon { get; set; }
        public IEquation Equation { get; private set; }
        public Point Initial { get; set; }

        #endregion

        #region Constructors

        public CauchySystem(IEquation equation, Point initial, double a, double b)
        {
            if (equation == null)
                throw new ArgumentNullException("equation");
            if (a > b)
                throw new ArgumentException("a > b");
            Equation = equation;
            Initial = initial;
            A = a;
            B = b;
        }

        #endregion
    }
}
